package pattern.factory;

import java.util.Map;
import java.util.WeakHashMap;

/**
 * 正方形
 */
public class Square implements Shape {
    @Override
    public void draw() {
        System.out.println("Inside Square::draw() method.");
    }

    @Override
    public WeakHashMap<String, Object> getMap(Map<String, Object> map) {
        return new WeakHashMap<String, Object>(map);
    }
}
